﻿@model CofeWebApplication.Models.IndexViewModel
@{
    ViewBag.Title = "Manage";
}

<<div class="jumbotron-fluid">
    <h2 class="text-center" style="color:antiquewhite; text-shadow: 2px 2px 10px #000000; padding-top: 75px; font-size: 3.3vw">Manage My Account</h2>
</div>

<div class="container">
    <p class="text-success">@ViewBag.StatusMessage</p>

    <div>
        <h4>Change your account settings</h4>
        <hr />

        <div class="row">
            <div class="col-md-8">
                <dl class="dl-horizontal">
                    <dt>
                        @if (!User.IsInRole("Admin"))
                        {
                            @Html.ActionLink("Order History", "TradeHistory");
                        }
                    </dt>
                    <dd>

                    </dd>
                    <dt>Password:</dt>
                    <dd>
                        [
                        @if (Model.HasPassword)
                        {
                            @Html.ActionLink("Change your password", "ChangePassword")
                        }
                        else
                        {
                            @Html.ActionLink("Create", "SetPassword")
                        }
                        ]
                    </dd>
                    <dt>External Logins:</dt>
                    <dd>
                        @Model.Logins.Count [
                        @Html.ActionLink("Manage", "ManageLogins") ]
                    </dd>
                </dl>
            </div>

        <div class="col-md-4">
            <img src="/Content/Image/myaccount.jpg" style=" width: 90%" />
        </div>

    </div>
    </div>
    
</div>